package mpv

import (
	"log"
	"os/exec"
)

func OpenVideo(content string) {
	videoLink := "https://www.youtube.com/watch?v=" + content
	mpv := exec.Command("mpv", videoLink)
	err := mpv.Run()
	if err != nil {
		log.Fatal(err)
	}
}
